<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>stop的应用</title>
		<script src="vue.js"></script>
	</head>

	<body>
		<div id="app">
			<div id="shijia" v-on:click="doPar">
				<button v-on:click="ToThis">事件冒泡</button>
				<button v-on:click.stop=ToThis>阻止事件冒泡</button>
			</div>
		</div>
	</body>
	<script>
		var vm = new Vue({
			el: "#app",
			methods: {
				ToThis() {
					console.log("只要我被点击的元素事件")
				},
				doPar() {
					console.log("我是父类方法")
				}
			}
		})
	</script>

</html>